<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Cbindgen-0.13.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="autoconf213.html" title=
          "Autoconf2.13">Prev</a>
          <p>
            Autoconf2.13
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clisp.html" title="Clisp-2.49">Next</a>
          <p>
            Clisp-2.49
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="cbindgen" name="cbindgen"></a>Cbindgen-0.13.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Cbindgen
        </h2>
        <p>
          <span class="application">Cbindgen</span> can be used to generate C
          bindings for <span class="application">Rust</span> code.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/eqrion/cbindgen/archive/v0.13.2/cbindgen-0.13.2.tar.gz">
                https://github.com/eqrion/cbindgen/archive/v0.13.2/cbindgen-0.13.2.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ec0cd9f3efdc46b18d1dbaf22bb9bcf1
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 164 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 91 MB (add 469 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 1.0 SBU (Using parallelism=4; add 0.5
                SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          cbindgen Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="rust.html" title=
          "Rustc-1.42.0">rustc-1.42.0</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/cbindgen">http://wiki.linuxfromscratch.org/blfs/wiki/cbindgen</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of cbindgen
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            As with most <span class="application">Rust</span> packages, this
            needs a network connection to check the current versions of the
            required cargo crates, and to download them if they are not
            already present.
          </p>
        </div>
        <p>
          Install <span class="application">cbindgen</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">cargo build --release</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>cargo
          test</strong></span>. Six tests, test_expand*, are known to fail.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">install -Dm755 target/release/cbindgen /usr/bin/</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">cbindgen</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">none</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">none</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="cbindgen-prog" name=
                    "cbindgen-prog"></a><span class="term"><span class=
                    "command"><strong>cbindgen</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    generates C bindings for <span class=
                    "application">Rust</span> code.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-21 16:00:58 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="autoconf213.html" title=
          "Autoconf2.13">Prev</a>
          <p>
            Autoconf2.13
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="clisp.html" title="Clisp-2.49">Next</a>
          <p>
            Clisp-2.49
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
